g6 = '/Users/brett/.slash/_/bin/6g'
l6 = '/Users/brett/.slash/_/bin/6l'

def build_go(example):
    Command(example + '.6', example + '.go', g6 + ' -o $TARGET $SOURCE')
    Command(example, example + '.6', l6 + ' -o $TARGET $SOURCE')


build_go('hello')
# Factorial
Command('commonfact.6', 'commonfact.go', g6 + ' -o $TARGET $SOURCE')
Command('factorial.6', 'factorial.go', g6 + ' -o $TARGET $SOURCE')
Command('factorial', ['factorial.6', 'commonfact.6'],
            l6 + ' -o $TARGET Go/factorial.6')
build_go('fibonacci')
# Parallel factorial
Command('parallel_factorial.6', 'parallel_factorial.go',
            g6 + ' -o $TARGET $SOURCE')
Command('parallel_factorial', ['parallel_factorial.6', 'commonfact.6'],
            l6 + ' -o $TARGET Go/parallel_factorial.6')

build_go('oplop')
